package mvc.model.service.impl;

import mvc.model.dao.RomDao;
import mvc.model.dao.impl.RomDaoImpl;
import mvc.model.pojos.RomBean;
import mvc.model.service.RomService;

import java.util.List;

public class RomServiceImpl implements RomService {
    private static RomDao romDao = new RomDaoImpl();
    @Override
    public List<RomBean> queryR(int rsize) {
        return romDao.queryR(rsize);
    }

    @Override
    public List<RomBean> queryM(int msize) {
        return romDao.queryM(msize);
    }

    @Override
    public RomBean query(int rid) {
        return romDao.query(rid);
    }
}
